home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 52
/
Amiga Format AFCD52 (Issue 136, May 2000).iso
/
-serious-
/
hardware
/
ahd12
/
sec
/
sec.c
< prev
Wrap
C/C++ Source or Header
|
2000-02-28
|
364b
|
26 lines
typedef unsigned long ULONG;
int readhardsec(void *, ULONG, ULONG);
short buf[256];
void
main()
{
long i;
i = 0;
readhardsec(buf, 0L, 512L);
buf[2] = 30;
hdconfig(buf);
while(readhardsec(buf, i<<9, 512L) == 0)
{
printf("Read %d ok\r", i);
i++;
if(i > 64) break;
}
printf("\nUse %d as track#\n", i);
}